Need to initialise private->impl here, too.
authorTor Lillqvist <tml@novell.com>
Mon, 7 Jul 2008 09:28:40 +0000 (09:28 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Mon, 7 Jul 2008 09:28:40 +0000 (09:28 +0000)
2008-07-07  Tor Lillqvist  <tml@novell.com>

* gdk/win32/gdkwindow-win32.c
(gdk_window_foreign_new_for_display): Need to initialise
private->impl here, too.

svn path=/trunk/; revision=20805

ChangeLog
gdk/win32/gdkwindow-win32.c

index c7de89ac998bf49183d98914d104f9f84f9acd0a..e79ddfea1b86112c1a3a3bca7dcf0f1a52abf7d7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-07-07  Tor Lillqvist  <tml@novell.com>
+
+       * gdk/win32/gdkwindow-win32.c
+       (gdk_window_foreign_new_for_display): Need to initialise
+       private->impl here, too.
+
 2008-07-07  Michael Natterer  <mitch@imendio.com>
 
        * gtk/gtkfilesystem.c: include the two needed headers instead of
index 728031495d8ab216301ba30a5a7e530397e3901b..b6d3e6ef46315d4f609f325d3421c9faa8dcd76c 100644 (file)
@@ -796,6 +796,7 @@ gdk_window_foreign_new_for_display (GdkDisplay      *display,
 
   window = g_object_new (GDK_TYPE_WINDOW, NULL);
   private = (GdkWindowObject *)window;
+  private->impl = g_object_new (_gdk_window_impl_get_type (), NULL);
   impl = GDK_WINDOW_IMPL_WIN32 (private->impl);
   draw_impl = GDK_DRAWABLE_IMPL_WIN32 (private->impl);
   draw_impl->wrapper = GDK_DRAWABLE (window);